package cn.wolfcode.edu.mapper;

import cn.wolfcode.edu.domain.Department;
import cn.wolfcode.edu.domain.Permission;
import cn.wolfcode.edu.query.QueryObject;

import java.util.List;

public interface PermissionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Permission entity);

    Permission selectByPrimaryKey(Long id);

    List<Permission> selectAll();

    int updateByPrimaryKey(Permission entity);

    int queryForCount(QueryObject qo);
    List<Permission> queryForList(QueryObject qo);
    List<String> selectAllName();

    List<Permission> queryByRoleId(Long roleId);
    List<String> getPermsByEmployeeId(Long id);
}